﻿import request from '/@/utils/request';
enum Api {
  AddXuenianXueqi = '/api/xuenianXueqi/add',
  DeleteXuenianXueqi = '/api/xuenianXueqi/delete',
  UpdateXuenianXueqi = '/api/xuenianXueqi/update',
  PageXuenianXueqi = '/api/xuenianXueqi/page',
  DetailXuenianXueqi = '/api/xuenianXueqi/detail',
  GetCurXueqi = '/api/xuenianXueqi/getCurXueqi',
}

// 增加学年学期
export const addXuenianXueqi = (params?: any) =>
	request({
		url: Api.AddXuenianXueqi,
		method: 'post',
		data: params,
	});

// 删除学年学期
export const deleteXuenianXueqi = (params?: any) => 
	request({
			url: Api.DeleteXuenianXueqi,
			method: 'post',
			data: params,
		});

// 编辑学年学期
export const updateXuenianXueqi = (params?: any) => 
	request({
			url: Api.UpdateXuenianXueqi,
			method: 'post',
			data: params,
		});

// 分页查询学年学期
export const pageXuenianXueqi = (params?: any) => 
	request({
			url: Api.PageXuenianXueqi,
			method: 'post',
			data: params,
		});

// 详情学年学期
export const detailXuenianXueqi = (id: any) => 
	request({
			url: Api.DetailXuenianXueqi,
			method: 'get',
			data: { id },
		});

export const getCurXueqi = () => 
	request({
			url: Api.GetCurXueqi,
			method: 'get'
		});
		